<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>消息管理</title>
	<%@ include file="/view/common/tags.jsp"%>
	<script type="text/javascript" src="${sysManagerV1}/js/My97DatePicker/WdatePicker.js"> </script>
</head>
<body>
	<section class="content">
    	<div class="row">
            <div class="col-md-12">
                <div class="box">
                	<div class="box-body">
						<div class="panel panel-default">
                            <div class="panel-body" style="padding-bottom:5px;">
                                <form class="form-horizontal" action="" method="post" id="dataForm">
                                	<div class="searchMenu">
                                	    <div>
                                		    <label >标题名称：</label>
                                            <input type="text" class="form-control" name="wm[_LIKE$MESSAGE_TITLE]" value="${page.wm._LIKE$MESSAGE_TITLE}"  placeholder="请输入消息标题名称">
                                        </div>
                                        <div>
                                    	    <label>应用名称：</label>
                                        	<sk:select cssClass="form-control select" name="wm[GAME_NAME]" value="${page.wm.GAME_NAME}" >
							                	<option value="">请选择</option>
												<sk:options  options="${appNameList}" ></sk:options>
							            	</sk:select>
                                        </div>
                                        <div> 
                                            <label>是否发布：</label>
                                            <sk:select cssClass="form-control select" name="wm[USE_FLAG]" value="${page.wm.USE_FLAG}"  >
                                            	<option value="">请选择</option>
                                            	<option value="0">停用</option>
                                            	<option value="1">发布</option>
                                            </sk:select>
                                        </div>
                                        <div>
                                    	    <label>操作时间：</label>
                                            <input id="createTimeStart" name="wm[_MORE_EQUAL$OPT_TIME]" value="${page.wm._MORE_EQUAL$OPT_TIME}"  type="text"  class="Wdate" 
											  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 00:00:00',alwaysUseStartDate:true,maxDate:'#F{$dp.$D(\'createTimeEnd\')}',minDate:'#F{$dp.$D(\'createTimeEnd\',{d:-30,H:-23,m:-59,s:-59})}'})" /> 
											  <span class="pull-left">&nbsp;-&nbsp;</span>
											  <input id="createTimeEnd" name="wm[_LESS_EQUAL$OPT_TIME]" value="${page.wm._LESS_EQUAL$OPT_TIME}"  class="Wdate" 
								               onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 23:59:59',alwaysUseStartDate:true,minDate:'#F{$dp.$D(\'createTimeStart\')}',maxDate:'#F{$dp.$D(\'createTimeStart\',{d:+30,H:+23,m:+59,s:+59})}'})" />
                                        </div>
                                        <div class="mal10" >
                                            <button type="button"  class="btn btn-primary btn-sm"  onclick="findData()"><span class='glyphicon glyphicon-search'></span>查&nbsp;询</button>
                                            <sk:button type="button" rightKey="20170816153214"  _class="btn btn-success btn-sm"  onclick="add()"><span class='glyphicon glyphicon-plus'></span>添&nbsp;加</sk:button>
                                        </div>
                                	</div>
                                </form>
                        	</div>
						</div>
                        <table class="table table-hover table-condensed table-bordered table-striped" id="dataTable" >
                            <thead>
                            	<tr>
                                	<th data-field="index" data-align="center" data-formatter="indexFormatter" data-sortable="false">序号</th>
                                	<th data-field="messageTitle" data-align="center" data-sortable="true">标题</th>
                                    <th data-field="orderNum" data-align="center" data-sortable="true">排序号</th>
                                    <th data-field="gameName" data-align="center" data-sortable="true" data-formatter="gameNameFormatter" >应用名称</th><!-- 新加app需要修改-->
                                	<th data-field="gameId" data-align="center" data-sortable="true" data-formatter="deviceFormatter" >设备</th>
                                    <th data-field="useFlag" data-align="center" data-formatter="useFlagFormatter" data-sortable="true">是否发布</th>
                                    <th data-field="optAccount" data-align="center" data-sortable="true">操作人帐号</th>
                                    <th data-field="createTime" data-align="center"  data-formatter="timeFormatter_point" data-sortable="true">创建时间</th>
                                    <th data-field="optTime" data-align="center" data-formatter="timeFormatter_point" data-sortable="true">操作时间</th>
                                    <th data-field="deleteButton" data-align="center"  data-formatter="buttonFormatter" data-sortable="false">操作</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
       	</div>
	</section>
   <%@ include file="/view/common/footer.jsp"%>
   <script type="text/javascript" src="${sysManagerV1}/view/js/system/message_list.js"></script>
</body>
<script>
// 提示信息
var msgg='<%=request.getAttribute("msg")%>';
if (msgg && msgg!=null && msgg!='null') { 
	  layer.msg(msgg);
}
</script>
</html>